package com.secret.chain.secretchain.propreties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;

@Data
@Component
@ConfigurationProperties(prefix = "chain.jwt")
public class JwtProperties {
    private String userSecretKey;
    private String userTokenName;
    private Long userTtl;

    @Override
    public String toString() {
        return "JwtProperties{" +
                "userSecretKey='" + userSecretKey + '\'' +
                ", userTokenName='" + userTokenName + '\'' +
                ", userTtl=" + userTtl +
                '}';
    }
}